package service;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import dao.CheckItemDao;
import pojo.CheckItem;

@Service("checkItemService")
@Mapper
public class CheckItemService {
	@Autowired
	private CheckItemDao checkItemDao;
	
	public int insertCheckItem(int checkid,int studentid,int status) {
		return checkItemDao.insertCheckItem(checkid, studentid, status);
	}
	public int nextPrimaryKey() {
		return checkItemDao.nextPrimaryKey();
	}
	public List<CheckItem> selectCheckitem(int checkid){
		return checkItemDao.selectCheckitem(checkid);
	}
}
